
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<section class="span4 articles-list">
	<h3>最热文章</h3>
	<ul class="articles" id="ul1">
		<c:forEach items="${hotPosts }" var="post">
			<li class="article-entry standard">
				<h4>
					<a
						href="${pageContext.request.contextPath}/PostController?action=postSingle&id=${post.id}">${post.title }</a>
				</h4> <span class="article-meta">发布时间：${post.pubTime } <a href=""
					title="View all posts in Server &amp; Database"> &amp;
						${post.userinfo.nickname }</a></span> <span praise="false" id="praised"
				class="like-count" onclick="praised(${post.id},this)">${post.praised }</span>
			</li>
		</c:forEach>
	</ul>
</section>
<section class="span4 articles-list">
	<h3>最新文章</h3>
	<ul class="articles" id="ul2">
		<c:forEach items="${newPosts }" var="post">
			<li class="article-entry standard">
				<h4>
					<a
						href="${pageContext.request.contextPath}/PostController?action=postSingle&id=${post.id}">${post.title }</a>
				</h4> <span class="article-meta">发布时间：${post.pubTime } <a href="#"
					title="View all posts in Server &amp; Database"> &amp;
						${post.userinfo.nickname }</a></span> <span praise="false" id="praised"
				class="like-count" onclick="praised(${post.id},this)">${post.praised }</span>
			</li>
		</c:forEach>
	</ul>
</section>

















